package descentFly.away3D4.chips
{
	import UIFree.ObjectEvent;
	
	import away3d.entities.Sprite3D;
	import away3d.materials.AnimatedBitmapMaterial;
	import away3d.materials.BitmapMaterial;
	import away3d.materials.MaterialBase;
	
	import descentFly.away3D4.Sprite.df_animSprite;
	import descentFly.df_space;
	import descentFly.sound.df_soundManager;
	
	import flash.display.BitmapData;
	import flash.events.Event;
	import flash.events.TimerEvent;
	import flash.geom.Point;
	import flash.utils.Timer;
	
	public class df_explodeAnim extends df_animSprite {
		public static const SIZE: Point = new Point(512, 512);
		private var _space	: df_space;
		private var _options: Object;
		public function df_explodeAnim(a_space: df_space, a_frames: Array, a_options: Object) {
			super(SIZE.x, SIZE.y, a_frames);
			_space = a_space;
			_options = a_options;
		}
		
		override public function begin(a_completeFunc: Function=null): void {
			super.begin(a_completeFunc);
			
			if (_options.sound) 
				df_soundManager.playSound(_options.sound, this);
		}
	}
}